package com.luban.enums;

public enum CssStyleEnum {
	css("0","<input>?</input>"),
	id("1","id");
	private String code;
	private String value;

	CssStyleEnum(String code, String value) {
		this.code = code;
		this.value = value;
	}

	// 普通方法
	public static String getMessage(String code) {
		for (CssStyleEnum c : CssStyleEnum.values()) {
				if (code.equals(c.getCode())) {
				return c.value;
			}
		}
		return null;
	}

	public String getCode() {
		return code;
	}

	public String getValue(){
		return value;
	}
}
